{% extends "layout.html" %}
{% block content %}

{% include "search_block.html" %}


<div class="layui-container">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>搜索结果</legend>
    </fieldset>

    <div class="layui-row">
        <div class="layui-col-xs12 layui-col-md12">
            <table class="layui-table" lay-even="" lay-skin="nob">
              <thead>
                <tr>
                    <th>Symbol</th>
                    <th>Description</th>
                    <th>Instrument Type</th>
                </tr>
              </thead>
              <tbody>
                {% for document in result_document_list %}
                <tr>
                    <td>
                        <a href="/{{document['instrument_type']}}/{{document['symbol']}}">{{document["symbol"]}}</a>
                    </td>
                    <td>{{document["description"]}}</td>
                    <td>{{document["instrument_type"]}}</td>
                </tr>
                {% end %}
              </tbody>
            </table>
        </div>
    </div>
</div>


{% end %}